package com.erp.purchase.receipts.service.Impl;

import com.erp.purchase.receipts.domain.ErpPurchaseReceipts;
import com.erp.purchase.receipts.mapper.ErpPurchaseReceiptsMapper;
import com.erp.purchase.receipts.service.ErpPurchaseReceiptsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author ZhangYuqi
 * @date 2025/9/5
 * @desc
 */
@Service
public class ErpPurchaseReceiptsServiceImpl implements ErpPurchaseReceiptsService {
    @Autowired
    private ErpPurchaseReceiptsMapper erpPurchaseReceiptsMapper;
    @Override
    public List<ErpPurchaseReceipts> selectPurchaseReceiptsList(ErpPurchaseReceipts erpPurchaseReceipts) {
        
        List<ErpPurchaseReceipts> list = erpPurchaseReceiptsMapper.selectPurchaseReceiptsList(erpPurchaseReceipts);
        System.out.println("list = " + list);
        return list;
    }

    @Override
    public ErpPurchaseReceipts selectPurchaseReceiptsById(String inboundNo) {
        return erpPurchaseReceiptsMapper.selectPurchaseReceiptsById(inboundNo);
    }

    @Override
    public void updateViewPurchaseReceiptsView(String inboundNo) {

    }

    @Override
    public int updatePurchaseReceipts(ErpPurchaseReceipts erpPurchaseReceipts) {
        return erpPurchaseReceiptsMapper.updatePurchaseReceipts(erpPurchaseReceipts);
    }


}

